//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see http://www.gnu.org/licenses/.
// 

#ifndef PROPOSALISELECTIVE_H_
#define PROPOSALISELECTIVE_H_

#include "Definitions.h"

class ProposalISelective: public cSimpleModule
{
private:
    volatile double BLER;
    volatile int statIndex;
    volatile double overhead;
    int numOfFrames;
    volatile int ARQ_Block_Size;     //(bytes)
    int PDU_Size;           //(blocks)
    volatile int frameSize;
    int numOfBlocks;
    double statTable[21];
    double blerstop;
    vector<int> vect;
    ofstream myfile;

protected:
    virtual void initialize();
    virtual void handleMessage(cMessage *msg);
    virtual void handleData(Data *msg);
    virtual void reply();
    virtual void printMessage(ARQ_pck *msg);
    virtual void statisticUpdate();
    virtual void finish();

};

#endif /* PROPOSALISELECTIVE_H_ */
